package com.woniu.postbar.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author wu
 * @since 2023-05-20
 */
@Getter
@Setter
@TableName("t_post_comment")
@ApiModel(value = "PostComment对象", description = "")
public class PostComment implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("用户id")
      private Integer userId;

      @ApiModelProperty("帖子表id")
      private Integer userPostId;

      @ApiModelProperty("评论父id")
      private Integer commentParentId;

      @ApiModelProperty("评论根id")
      private Integer rootParentId;

      @ApiModelProperty("评论")
      private String message;

      @ApiModelProperty("点赞数")
      private Integer commentLikeCount;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;
}
